package structural.flyWeight;

import org.omg.CORBA.PRIVATE_MEMBER;

public class Manager implements Employee {

    @Override
    public void report() {
        System.out.println("开始做报告 "+reportContent);
    }
    //内部状态，不会随着外部状态改变而改变。
    private String title = "部门经理";
    // department 是外部传进来的  依赖于外部，所以叫它外部状态。
    private String department;
    private String reportContent;
    public Manager(String department){
        this.department = department;
    }
    public void setReportContent(String reportContent){
        this.reportContent = reportContent;
    }
}
